﻿Imports DAL

Public Class buAddresses


    ''' <summary>
    ''' Trả về danh sách địa chỉ theo CustomerId
    ''' </summary>
    ''' <param name="customerId">ID khách hàng cần sàng lọc</param>
    Public Function RetrieveAddressesByCustomerId(ByVal customerId As Integer) As List(Of Address)

        Using dbEntities As New PrestozEntities

            Return dbEntities.Addresses.Where(Function(c) c.CustomerId = customerId).ToList()

        End Using

    End Function

    
End Class
